package com.example.demo.service;

import com.example.demo.core.BookBackInfo;
import com.example.demo.core.NotFoundException;
import com.example.demo.model.BookBorrow;
import com.example.demo.model.FeeRecord;
import com.example.demo.model.FeeRecordNameMap;

import java.util.Date;
import java.util.List;

public interface BookBorrowAndFeeService {
    boolean bookBorrow(String name, Integer bookinfoId,Integer day) throws NotFoundException;
    boolean bookRenew(Integer bookborrowId,Integer day);
    BookBackInfo bookBack(String name, Integer bookinfoId) throws NotFoundException;
    boolean feePay(String name,Integer bookinfoId) throws NotFoundException;
    List<FeeRecordNameMap> selectFeeRecord(String name, Date timePayFeeStartDate, Date timePayFeeEndDate) throws NotFoundException;
    List<BookBorrow> selectBorrowRecord(String name,String bookName) throws NotFoundException;
    boolean isBorrow(Integer bookInfoId,Integer userId);
}
